HideControl
CHANGED WITH THE APPEARANCE MANAGER
Makes the visible control, and any latent embedded controls, invisible.
pascal void HideControl (ControlHandle theControl);
theControl
- On input, a handle to the control you want to hide.
DISCUSSION
TheHideControl
function makes the specified control invisible. This can be useful, for example, before adjusting a control's size and location. It also adds the control's rectangle to the window's update region, so that anything else that was previously obscured by the control will reappear on the screen. If the specified control has embedded controls,HideControl
makes the embedded controls invisible as well. If the control is already invisible,HideControl
has no effect.If you call
HideControl
on a latent embedded control, it would not be displayed the next timeShowControl
was called on its embedder control. For a discussion of latency, see "Manipulating Controls".To make the control visible again, you can use the
ShowControl
function orSetControlVisibility
.WHEN THE APPEARANCE MANAGER IS NOT AVAILABLE
HideControl
only makes the specified control invisible, because embedding hierarchies are not supported.